import request from "../../utils/request";
// import type {
//     loginFormData,
//     loginResponseData,
//     userInfoReponseData,
// } from './type'

// mock接口
export const reqLogin = (data: userInfoApi.loginFormData) => request.post<any, userInfoApi.loginResData>('/user/login', data)
export function reqUserInfo() {
    return request.get<any, userInfoApi.userInfoResData>('/user/info')
}

// 线上接口
// export const reqLogin = (data: loginFormData) => request.post<any, loginResponseData>('/admin/acl/index/login', data)

// export function reqUserInfo() {
//     return request.get<any, userInfoReponseData>('/admin/acl/index/info')
// }

// export const reqLogout = () => request.post<any, any>('/admin/acl/index/logout')